<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="UserViewDlg" widgetVar="UserViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewUserTitle}">

            <h:form id="UserViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{userController.selected != null}">

                        <h:outputText value="#{bundle.ViewUserLabel_id}"/>
                        <h:outputText value="#{userController.selected.id}" title="#{bundle.ViewUserTitle_id}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_userName}"/>
                        <h:outputText value="#{userController.selected.userName}" title="#{bundle.ViewUserTitle_userName}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_passWord}"/>
                        <h:outputText value="#{userController.selected.passWord}" title="#{bundle.ViewUserTitle_passWord}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_email}"/>
                        <h:outputText value="#{userController.selected.email}" title="#{bundle.ViewUserTitle_email}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_picture}"/>
                        <h:outputText value="#{userController.selected.picture}" title="#{bundle.ViewUserTitle_picture}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_registerDate}"/>
                        <h:outputText value="#{userController.selected.registerDate}" title="#{bundle.ViewUserTitle_registerDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewUserLabel_lastLoginDate}"/>
                        <h:outputText value="#{userController.selected.lastLoginDate}" title="#{bundle.ViewUserTitle_lastLoginDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewUserLabel_rolidRol}"/>
                        <h:outputText value="#{userController.selected.rolidRol.descripcion}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_employeeList}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_studentList}"/>

                        <h:outputText value="#{bundle.ViewUserLabel_userMessagesList}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="UserViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
